package com.kc.business.enums;

import lombok.Getter;

/**
 * FileName: ShareProfitConfigStatusEnum
 * Author:   TP
 * Date:     2020-11-04 08:16
 * Description: 分润配置状态枚举
 */
@Getter
public enum ShareProfitConfigStatusEnum {

    AUDITING(0, "审核中"),
    AUDIT_SUCCESS(1, "审核通过"),
    AUDIT_REJECT(2, "审核拒绝");

    private Integer status;
    private String message;

    ShareProfitConfigStatusEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public static String getMessage(Integer status) {
        ShareProfitConfigStatusEnum[] enums = ShareProfitConfigStatusEnum.values();
        for (ShareProfitConfigStatusEnum statusEnum : enums) {
            if (statusEnum.getStatus().equals(status)) {
                return statusEnum.getMessage();
            }
        }
        return null;
    }
}
